import { BaseProcessor } from './baseProcessor.js'
import fs from 'fs/promises'
import { marked } from 'marked'

export class MarkdownProcessor extends BaseProcessor {
  async process(filePath) {
    const content = await fs.readFile(filePath, 'utf-8')
    const html = marked(content)
    return this.normalizeWhitespace(this.cleanHtml(html))
  }
} 